package online.heycm.rbac.param.basic;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author hey
 * @version 1.0
 * @date 2024/1/17 16:59
 */
@Data
public class RoleInterfaceAddReq implements Serializable {

    private static final long serialVersionUID = 612052493401344361L;

    /**
     * 角色ID
     */
    @NotNull
    private Integer roleId;

    /**
     * 接口ID
     */
    @NotNull
    @Size(min = 1)
    private List<Integer> interfaceIds;
}
